from datetime import datetime
from typing import Union

from pydantic import BaseModel


class User(BaseModel):
    name: Union[str, int]


class Token(BaseModel):
    access_token: str
    token_type: str


class TokenData(BaseModel):
    name: Union[str, None] = None


class UserInDB(User):
    password: str
